#ifndef _CWORM_H_
#define _CWORM_H_

#include "CEnemy.h"
#include "CPlayer.h"

class CWorm : public CEnemy
{
private:
	bool isJumping;		// true if the worm is jumping toward the player
	int speed;			// move speed of the worm
	int jumpSpeed;		// speed at which the worm jumps
	int jumpRange;		// range of the worm's jump ability
	int damage;			// amount of damage that the worm does when he collides with the player
	float jumpTime;		// amount of time the worm has been jumping
	float jumpLength;	// the length (in seconds) of the worm's jump
	int ImageID;		// Image of the worm
	bool IsBack;		//if it is going backward

public:
	CWorm(void);
	~CWorm(void);

	int GetDamage() {return damage;}

	void Fire(void);
	void Jump(tVector2D vec);
	void Update(float fElapsedTime);
	void Render(void);
	bool CheckCollision(IBaseInterface* pBase);
	//CPlayer* GetPlayer(void) { return CPlayer::GetInstance(); }

};

#endif